﻿using System;
using System.Buffers;
using System.IO.Pipelines;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;

namespace Atomic
{
    public interface IServer : IDisposable
    {
        Task StartAsync(ConnectionDelegate connectionDelegate,CancellationToken cancellationToken);
        Task StopAsync(CancellationToken cancellationToken);
    }

     
}
